// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'


//设置rem
import './config/rem'


//使用ydui组件
import YDUI from 'vue-ydui';
import 'vue-ydui/dist/ydui.rem.css';
Vue.use(YDUI);


//使用axios请求
import axios from 'axios'
Vue.prototype.$http = axios


//全局请求域名
import domain from './config/domain'
global.domain = domain;


// 使用Vuex状态管理工具
import store from './store.js'


//全局websocket请求方法
import './config/websocket'



//base64 工具
let Base64 = require('js-base64').Base64;


Vue.config.productionTip = false;


/* eslint-disable no-new */
new Vue({
  store,
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});
